﻿using System;
using System.Buffers;

namespace Telex;

struct SocketPak
{
    public byte command;
    public uint hash;
    public ArraySegment<byte> buf;

    public void Dispose()
    {
        ArrayPool<byte>.Shared.Return(buf.Array);
    }
}

struct MessagePack
{
    public Guid uid;
    public uint protocolId;
    public int opcode;
    public byte[] data;
}

struct VerifyPack
{
    public uint hash;
    public byte status;
}

